package com.example.petshop.service;

import com.example.petshop.entity.Order;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderService {

    void saveOrder(Order order);

    List<Order> getAll();

    List<Order> getOrdersByIds(List<Integer> ids);

    void updateOrderState(List<Integer> orderIds, String newState);

//    List<Order> getByState(String state);

    List<Order> getByUserIdAndState(Long userId, String state);

    void updateOrder(Order order);


    void updateRemark(int orderId, String remark);

    void updateReason(int orderId, String reason);

    List<Order> getAfterOrdersByUserIdAndStates(Long userId, List<String> states);

    List<Order> getRemarksByGoodsName(String goodsName);

    void updateGoodsInventoryAndSales(List<Integer> orderIds);

    List<Order> getByShopId(int shopId);
}
